using MediatR;
using RBAC.Domain.Dto.Output;
using RBAC.ErrorCode;

namespace RBAC.Read.Api.Application.Command.ERP.MaterialFile
{
    /// <summary>
    /// 获取物料分类列表命令 - 支持树状图展示和模糊查询
    /// </summary>
    public class GetMaterTypeListCommand : IRequest<APIResult<List<GetMaterTypeListDto>>>
    {
        /// <summary>
        /// 分类名称 - 支持模糊查询
        /// </summary>
        public string? TypeName { get; set; }

        /// <summary>
        /// 分类状态筛选
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 父级ID - 用于查询特定分类的子分类
        /// </summary>
        public long? ParentId { get; set; }
    }
}